package com.example.listviewtest;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button arrayList = findViewById(R.id.array_list);
        arrayList.setOnClickListener(v -> {
            Intent intent = new Intent(MainActivity.this, ArrayListActivity.class);
            startActivity(intent);
        });

        Button base = findViewById(R.id.baseadapter);
        base.setOnClickListener(v -> {
            Intent intent = new Intent(MainActivity.this, BaseAdapterActivity.class);
            startActivity(intent);
        });
    }
}